package com.itheima.dao;

import com.itheima.domain.Employee;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmployeeDao {
    List<Employee> findAll();

    @Insert("INSERT INTO ssm_exam.tb_employee VALUES (NULL,#{empName},#{deptId},#{jobName},#{joinDate},#{telephone})")
    void save(Employee employee);
}
